
const answer = {
  namespaced: true,
  state: {
    interviewAnswer: '',
  },
  mutations: {
    SET_ANSWER(state, payload) {
      state.interviewAnswer = payload;
    },
  },
  actions: {
    updateAnswer({ commit }, answer) {
      commit('SET_ANSWER', answer);
    },
  },
  getters: {
    getInterviewAnswer: (state) => state.interviewAnswer,
  },
};

export default answer;
